package cn.janus.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
@Data
public class UserDTO {
    @NotBlank(message = "不能没有名字")
    private String username;

    @Pattern(regexp = "^[A-Za-z0-9]{6,16}$", message = "请输入6～16位数字或大小字母的密码")
    private String password;
}
